package com.pro.service.imple;

import com.pro.mapper.JsClosureMapper;
import com.pro.pojo.JsClosure;
import com.pro.pojo.JsUnseal;
import com.pro.service.JsClosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @Title: 封停记录 service实现类
* @author 许振杰
* @date 2022/1/27 0027 21:31
* @version V1.0
*/
@Service
public class JsClosureServiceImple implements JsClosureService {
    @Autowired
    private JsClosureMapper closureMapper;

    /**
    * @Title: 前端封停日志列表
    * @author 许振杰
    * @date 2022/1/27 0027 21:33
    * @version V1.0
    */
    @Override
    public List<JsClosure> getAllClosure(JsClosure closure) {
        return closureMapper.getAllClosure(closure);
    }

    /**
    * @Title: 前端封停记录高级检索
    * @author 许振杰
    * @date 2022/1/29 0029 21:14
    * @version V1.0
    */
    @Override
    public List<JsClosure> getClosureAdvancedRetrieval(JsClosure closure) {
        return closureMapper.getClosureAdvancedRetrieval(closure);
    }

    /**
    * @Title: 删除封停记录
    * @author 许振杰
    * @date 2022/1/29 0029 21:15
    * @version V1.0
    */
    @Override
    public boolean delClosureById(Integer id) {
        return closureMapper.delClosureById(id);
    }

    /**
    * @Title: 添加解封日志
    * @author 许振杰
    * @date 2022/1/29 0029 22:07
    * @version V1.0
    */
    @Override
    public boolean addUnsealLog(JsUnseal unseal) {
        return closureMapper.addUnsealLog(unseal);
    }

    /**
    * @Title: 前端解封日志列表
    * @author 许振杰
    * @date 2022/1/30 0030 15:24
    * @version V1.0
    */
    @Override
    public List<JsUnseal> getAllUnseal(JsUnseal unseal) {
        return closureMapper.getAllUnseal(unseal);
    }

    /**
    * @Title: 前端解封日志的高级检索
    * @author 许振杰
    * @date 2022/1/30 0030 15:25
    * @version V1.0
    */
    @Override
    public List<JsUnseal> getUnsealAdvancedRetrieval(JsUnseal unseal) {
        return closureMapper.getUnsealAdvancedRetrieval(unseal);
    }

    /**
    * @Title: 删除解封日志
    * @author 许振杰
    * @date 2022/1/30 0030 15:25
    * @version V1.0
    */
    @Override
    public boolean delUnseal(Integer id) {
        return closureMapper.delUnseal(id);
    }

    /**
    * @Title: 根据userId查询封停信息
    * @author 许振杰
    * @date 2022/2/8 0008 20:32
    * @version V1.0
    */
    @Override
    public JsClosure getClosureByUserId(JsClosure closure) {
        return closureMapper.getClosureByUserId(closure);
    }
}
